OBJECT_COMMON = ./src/*.c
LIBRARY_COMMON = ./bin/*.o
OUTPUT_COMMON_APPLICATION = ./../application/bin/

COMMON = ./../common/
APPLICATION = ./../application/


OBJECT_APPLICATION = ./src/*.c
LIBRARY_APPLICATION = ./bin/*.o
OUTPUT_APPLICATION = ./bin/

FLAG_BUILD = -D_REENTRANT -lpthread

#application: obj_common obj_application
application: obj_application
	cc -o application_layer $(LIBRARY_APPLICATION) $(FLAG_BUILD)

#obj_common:
#	make -C $(COMMON)
	
obj_application:
#	cd $(APPLICATION)
	cc -c $(OBJECT_APPLICATION) $(FLAG_BUILD)
	mv -f *.o $(OUTPUT_APPLICATION)
	
clean:
	rm -f application_layer
	rm -f *.o
	rm -f ./bin/*.o
